/*
** escaping.h for minishell2 in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#ifndef H_ESCAPING
#define H_ESCAPING

typedef enum e_escaping
{
  ESCAPING_NONE = 0,
  ESCAPING_BACKSLASH,
  ESCAPING_SIMPLE,
  ESCAPING_DOUBLE
} e_escaping;

/*
**  escaping1.c
*/

int is_backslashed(char *s, int c);
int is_simplequoted(char *s, int c);
int is_doublequoted(char *s, int c);
e_escaping is_escaped(char *s, int c);
int is_escaping(char *s, int c);

/*
**  escaping2.c
*/

void escaping_strip(char *s);
char *escaping_strtok(char **s, const char *delim);

#endif
